html,
body,
#root {
  height: 100%;
}
.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

.ant-pro-card {
  .ant-pro-card-title {
    font-weight: bold;
  }
}
// 列表工具栏两边对齐布局
.ant-pro-table-list-toolbar-flex-between {
  .ant-pro-table-list-toolbar-container {
    display: block;
    padding-top: 0;
    .ant-pro-table-list-toolbar-right {
      display: block;
      .ant-space {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
    }
  }
}

.ant-pro-global-header-layout-mix {
  background-color: #fff !important;

  .ant-pro-global-header-logo {
    h1 {
      color: #000 !important;
    }
  }

  .anticon {
    color: #303133 !important;
  }
}

.ant-pro-layout-header {
  background-color: #fff !important;
}

.ant-pro-layout-container {
  min-height: 100vh !important;
  background-color: #f4f8fe !important;
  .ant-pro-layout-content {
    margin: 12px 0;
  }
}
.ant-page-header-has-breadcrumb {
  margin: 0px 40px 16px;
  background-color: #fff !important;
  border-radius: 1px;
  padding-block-start: 8px !important;
  padding-block-end: 8px !important;
}


.ant-layout-sider-collapsed {
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
}


.ant-pro-sider .ant-layout-sider-children {
  background-color: #fff !important;
  padding-inline: 0 !important;
  div {
    &::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    &::-webkit-scrollbar-thumb {
      background: hsla(0, 0%, 100%, 0.2);
      border-radius: 3px;
      box-shadow: inset 0 0 5px hsla(0, 0%, 100%, 0.05);
    }
    &::-webkit-scrollbar-track {
      background: hsla(0, 0%, 100%, 0.15);
      border-radius: 3px;
      box-shadow: inset 0 0 5px rgba(37, 37, 37, 0.05);
    }
  }
}


// 右上角用户中心样式复写
.ant-pro-global-header-header-actions {
  .ant-pro-global-header-header-actions-item {
    padding: 0;
  }
  .ant-pro-global-header-header-actions-avatar {
    padding-inline-start: 0;
    & > div {
      color: rgba(48, 49, 51, 1);
    }
    .ant-dropdown-trigger {
      .ant-avatar-circle {
        display: none;
      }
    }
  }
}


.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: 768px) {
  .ant-table {
    width: 100%;
    overflow-x: auto;

    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;

        > span {
          display: block;
        }
      }
    }
  }
}
